#include"AVL.h"

int main()
{
	/*int a[] = { 16,3,7,11,9,26,18,14,15 };*/
	std::vector<int> a;
	int N = 100000;
	a.reserve(N);
	srand(time(0));
	for (int i = 0; i < N; i++)
	{
		a.push_back(rand());
	}
	AVLTree<int, int> t;
	for (auto e : a)
	{
		t.Insert(make_pair(e, e));
		cout << "Insert:" << e << "->" << t.IsBalance() << endl;
	}
	return 0;
}